<include file="Public:header"/>
<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"slide":{"type":"slide","bdImg":"6","bdPos":"right","bdTop":"161"},"image":{"viewList":["qzone","tsina","tqq","renren","weixin"],"viewText":"分享到：","viewSize":"16"},"selectShare":{"bdContainerClass":null,"bdSelectMiniList":["qzone","tsina","tqq","renren","weixin"]}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Home/default/so_index.css"/>
<div class="fixTop">
	<ul class="left">
		<li><a href="{:U('Index/index')}">返回首页</a></li>
		<!-- <li>查看更多</li> -->
	</ul>
<!-- 	<ul class="right hidden-xs">
		<li>使用帮助</li>
		<li>关于我们</li>
	</ul> -->
</div>
<div class="container">
	<div class="row">
		<div class="col-xs-12 col-sm-offset-2 col-sm-8 col-md-offset-2 col-md-7" style="margin-top:150px;">
			<div class="logo" style="width:100%;text-align:center;"><img src="__PUBLIC__/img/logo.png"></div>
			<form action="{:U('So/result')}" method="GET">
           	 	<div class="input-group">
	               <input type="text" name="keyword" id="keyword" value="{$Think.get.keyword}" placeholder="请输入搜索关键字" class="form-control keyword">
	               <span class="input-group-btn">
	                  <button class="btn btn-default" type="submit">百度云一下</button>
	               </span>
            	</div><!-- /input-group -->
            	<span class="advanced">高级</span>
            	 <div class="soselect">
				  	<ul>
				  		<li style="border-bottom:1px solid #ccc;padding-right:10px;text-align:right;color:#2A00FF;"><label class="hidden_select" style="cursor:pointer;width:100%;">收起</label></li>
				  		<li style="border-bottom:1px solid #ccc;"><label class="label_type">选择类型</label></li>
				  		<li><label><input type="radio" name="type" <if condition="$Think.get.type eq '' || $Think.get.type eq 'all'"> checked="checked"</if> value="share">搜资源</label></li>
				  		<li><label><input type="radio" name="type" <if condition="$Think.get.type eq 'album'"> checked="checked"</if> value="album">搜专辑</label></li>
				  		<li><label><input type="radio" name="type" <if condition="$Think.get.type eq 'user'"> checked="checked"</if>  value="user">搜达人</label></li>
				  		<li><label><input type="radio" name="type" <if condition="$Think.get.type eq 'news'"> checked="checked"</if>  value="news">搜资讯</label></li>
				  	</ul>
				  </div>
            </form>
		</div>
	</div>
</div>
<script>
$(document).ready(function(){
	var keyword_arr=$("#keyword").val().split(" ");
	var title=$('span.title').html();
	$('span.title').each(function(){
		var html=$(this).html();
		$.each(keyword_arr,function(i){
			var k =keyword_arr[i];
			var re = new RegExp(k, 'gi');
			var arr=re.exec(html);
			if(arr){
				html = html.replace(arr[0],'<span class="red">' + arr[0] + '</span>');
			};
		});
		$(this).html(html);
	});
	$(".advanced").click(function(){
		$(".soselect").show();
	});
	$('.hidden_select').click(function(){
		$(".soselect").hide();
	});
	$('.footer').hide();
});
</script>
<include file="Public:footer" />
